<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/1/5
 * Time: 15:15
 */

namespace Admin\Model;


use Think\Model;

class AdminUserModel extends Model
{
    protected $connection = 'DB_CONFIG_MY';

    protected $trueTableName = 'admin_user';

    protected $_validate = [
        ['account','require','账号不能为空',self::MUST_VALIDATE],
        ['account','','该账号已存在',0,'unique'],

        ['password','require','密码不能为空',self::MUST_VALIDATE],

        ['rights','require','请选择菜单权限',self::MUST_VALIDATE],
    ];
}